package com.liu.community.utils;/*
 *@Author:Liu Xing-zhi
 *Description:
 *Date:Crated in 11:11 2021/10/27
 */

import org.apache.commons.lang3.StringUtils;

public class StringUtilByLike {

    public  static  String getSearch(String search){
        if (StringUtils.isNotBlank(search) ){
            search = "%"+search + "%";
        }else {
            search = search = "%%";
        }
        return  search;
    }
}
